package gewu.suleju.sevice.imp;

import gewu.suleju.dao.iml.IBrokerDao;
import gewu.suleju.dao.iml.IHouseBaseInforDao;
import gewu.suleju.dao.iml.IHouseDeviceKindDao;
import gewu.suleju.model.pojo.BrokerInfo;
import gewu.suleju.model.pojo.HouseBaseInfor;
import gewu.suleju.sevice.IHouseBaseInforService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HouseBaseInforServiceImp implements IHouseBaseInforService {
    @Autowired
    IHouseBaseInforDao iHouseBaseInforDao;
    @Autowired
    IBrokerDao iBrokerDao;
    @Autowired
    IHouseDeviceKindDao iHouseDeviceKind;
    //查找基本信息
    @Override
    public HouseBaseInfor findHouseBaseInforById(int id) {
        return iHouseBaseInforDao.findHouseBaseInforById(id);
    }
    //查找经纪人
    @Override
    public BrokerInfo findBrokerInfoByHouseid(Integer id) {
        return iBrokerDao.findBrokerInfoById(id);
    }
    //查找家具设备
    @Override
    public String[] findKindById(Integer id) {
        return iHouseDeviceKind.findKindById(id);
    }
}
